package com.sunchangpeng.wechat.mp.media.bean;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

@Data
public class MpNewsPage {
    @JSONField(name = "total_count")
    private int totalCount;

    @JSONField(name = "item_count")
    private int currentCount;

    @JSONField(name = "item")
    private List<MpNewsItem> items;

    @Data
    public static class MpNewsItem {
        @JSONField(name = "media_id")
        private String mediaId;
        private Content content;
        @JSONField(name = "update_time")
        private long updateTime;

        @Data
        public static class Content {
            @JSONField(name = "news_item")
            private List<MpArticle> news;

            @JSONField(name = "create_time")
            private long createTime;

            @JSONField(name = "update_time")
            private long updateTime;
        }
    }
}
